package structure.composite;

/**
 * @author dali
 * @date 2021-07-19 16:00
 * @Description 文件
 */

public class Leaf implements Component {
    private String name;

    public Leaf(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}
